<html>
<head>
    <meta charset="utf-8">
    <#assign base=request.contextPath  />
    <#setting  number_format="0.##"/>
    <title>日志管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${base}/backstage/layui/css/layui.css" media="all">
    <script src="${base}/backstage/js/jquery-1.8.3.min.js"></script>
    <script src="${base}/backstage/layui/layui.js"></script>
    <script src="${base}/backstage/js/feng.js"></script>
    <script>
        var base =  "${base}";
    </script>
    <style>
        /*给数据表格加高*/
        .layui-table-cell{
            height:50%;
        }
    </style>
</head>
<body>
<br>

<table class="layui-hide" id="test" lay-filter="test"></table>
<#--<script type="text/html" id="barDemo">-->
<#--    <button class="layui-btn" lay-event="edit" >编辑</button>&nbsp;-->
<#--    <button class="layui-btn" lay-event="del" onclick="onDelete('{{d.id}}')"-->
<#--            style="background: red;color: #FFFFFF">删除-->
<#--    </button>-->
<#--</script>-->
<#--<script type="text/html" id="toolbarDemo">-->
<#--    <form class="layui-form " action="">-->
<#--        <div class="layui-form-item" style="margin-left: 15px;">-->
<#--            <div class="layui-btn-group">-->
<#--                <button class="layui-btn" id="btn2" data-method="offset" type="button">添加</button>-->
<#--            </div>-->
<#--        </div>-->
<#--    </form>-->
<#--</script>-->
<script>
    layui.use(['table', 'form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , $ = layui.jquery
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , table = layui.table;

        table.render({
            skin: 'line' //行边框风格
            , even: true //开启隔行背景
            , elem: '#test'
            , url: '${base}/admin/journal/selectMyPage'
            , toolbar: '#toolbarDemo'
            ,cols:[[
                {field:'id', title: '序号',templet:function(val){
                        return val.LAY_INDEX
                    },align:'center'},
                {field:'userName', title: '用户', align:'center'},
                {field:'name', title: '电脑名称', align:'center'},
                {field:'ip', title: '电脑IP', align:'center'},
                {field:'browser', title: '浏览器', align:'center'},
                {field:'edition', title: '浏览器版本', align:'center'},
                {field:'operating', title: '电脑操作系统', align:'center'},
                // {field:'agreement', title: '协议', align:'center'},
                {field:'url', title: '访问路径', align:'center'},
                {field:'createTime', title: '创建时间',templet:function(val){
                        if(val.createTime==undefined){
                            return "";
                        }
                        return changeDateFormat(val.createTime);
                    },  align:'center'}
            ]]
            , id: 'testReload'
            , page: {
                layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
                , theme: '#1AB394'
                , limit: 10
            }
        });



    })


</script>

</body>

</html>


